<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateColumnTypeIconsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('column_type_icons', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->comment('符号名');
            $table->string('title', 100)->nullable()->comment('符号显示名');
            $table->integer('column_type_id')->default(0)->nullable()->unsigned()->comment('栏目类型');
            $table->integer('is_default')->default(0)->nullable()->unsigned()->comment('是否缺省');
            $table->string('type')->nullable()->comment('符号类型');
            $table->string('image', 191)->nullable()->comment('图片');
            $table->string('icon', 191)->nullable()->comment('符号值');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('column_type_icons');
    }
}
